'use strict';

const Controller = require('egg').Controller;
class UserController extends Controller {
    //用户是否存在
  async exist(id) {
    const { app } = this;
    return await app.model.User.findOne({
        where:{
            id
        }
    })
  }
}

module.exports = UserController;
